package com.qf.springBeanLifecyleDemo.advice;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author 刘欣
 * @createTime 2022/12/28 18:45
 * @description
 */
public class MyMethodInterceptor implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("环绕通知strat");

        Object obj = invocation.proceed();

        System.out.println("环绕通知end");


        return obj;
    }
}
